package com.kaishengit.action;

import com.kaishengit.entity.User;
import com.kaishengit.service.UserService;

public class UserAction {

	private User user;
	private UserService userService = new UserService();
	
	public String execute(){
		return "success";
	}
	public String login(){
		User u = userService.login(user);
		if(u != null){
			return "success";
		}else{
			return "login";
		}
	}
	
	//get set
	
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
}
